package com.message.feignclient;

import com.base.model.R;
import com.message.model.Media;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(name = "search-api",value = "search-api", fallbackFactory = MediaSearchClientFactory.class)
public interface MediaSearchClient {

    @PutMapping("/addMedia")
    public R<String> saveMedia(@RequestBody Media media);
}
